package cn.edu.ptu.jobfairs.web;

import cn.edu.ptu.jobfairs.basic.bo.ResumeEvaluate;
import cn.edu.ptu.jobfairs.basic.common.Result;
import cn.edu.ptu.jobfairs.services.ResumeEvaluateService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Lin Chenxiao on 2020-09-09
 **/
@RestController
@RequestMapping("/e")
public class EvaluateController {
    @Resource
    private ResumeEvaluateService resumeEvaluateService;

    @PostMapping("/add")
    public Result addEvaluate(ResumeEvaluate resumeEvaluate) {
        return resumeEvaluateService.addResumeEvaluate(resumeEvaluate);
    }

    @PostMapping("/edit")
    public Result editEvaluate(ResumeEvaluate resumeEvaluate) {
        return resumeEvaluateService.editResumeEvaluate(resumeEvaluate);
    }
}
